Query Containment for Conjunctive Queries With
نویسندگان
چکیده
The management of semistructured data has recently received signiicant attention because of the need of several applications to model and query large volumes of irregular data. This paper considers the problem of query containment for a query language over semistructured data, StruQL0, that contains the essential feature common to all such languages, namely the ability to specify regular path expressions over the data. We show here that containment of StruQL0 queries is decidable. First, we give a semantic criterion for StruQL0 query containment: we show that it suuces to check containment on only nitely many canonical databases. Second , we give a syntactic criteria for query containment, based on a notion of query mappings, which extends containment mappings for conjunctive queries. Third, we consider a certain fragment of StruQL0, obtained by imposing restrictions on the regular path expressions, and show that query containment for this fragment of StruQL0 is NP complete. 1 Introduction The management of semistructured data has recently received signiicant attention because of the need of several applications to model and query large volumes of irregular data 1, 5]. For example, researchers in biology store their data in structured les in various data exchange formats. Similarly, large volumes of online documentation, document collections and program libraries are available in structured les. Several characteristics distinguish semistructured data from relational and object-oriented data. Unlike traditional data that ts a pre-existing and xed schema, semistructured data is irregular: attributes may be missing , the type and cardinality of an attribute may not be known or may vary from object to another, and the set of attributes may not be known in advance. Furthermore , the schema of semistructured data, even if it
منابع مشابه
Containment and Optimization of Object-Preserving Conjunctive Queries
In the optimization of queries in an object-oriented database system (OODB), a natural rst step is to use the typing constraints imposed by the schema to transform a query into an equivalent one that logically accesses a minimal set of objects. We study a class of queries for OODB's called conjunctive queries. Variables in a conjunctive query range over heterogeneous sets of objects. Consequent...
متن کاملTechnical Note: BIRN-DI-TN-2003-01 Query Containment, Minimization, and Semantic Optimization of Conjunctive Queries (or: More on Uncles and Aunts)
This technical note presents the ubiquitous problem of query containment for conjunctive queries (an NP-complete problem), and an elegant implementation CQCP of Conjunctive Query Containment in Prolog, in just 7 lines of code. We also describe two important applications of conjunctive query containment: semantic query optimization and minimization. The latter can be implemented by another conci...
متن کاملOptimizing Conjunctive Queries over Trees Using Schema Information
We study the containment, satisfiability, and validity problems for conjunctive queries over trees with respect to a schema. We show that conjunctive query containment and validity are 2EXPTIMEcomplete w.r.t. a schema (DTD or Relax NG). Furthermore, we show that satisfiability for conjunctive queries w.r.t. a schema can be decided in NP. The problem is NP-hard already for queries using only one...
متن کاملThe Constructive Method for Query Containment Checking ( extended version )
We present a new method that checks Query Containment for queries with negated derived atoms and/or integrity constraints. Existing methods for Query Containment checking that deal with these cases do not check actually containment but another related property called uniform containment, which is a sufficient but not necessary condition for containment. Our method can be seen as an extension of...
متن کاملDeciding Containment for Queries with Complex Objects and Aggregations
We address the problem of query containment and query equivalence for complex objects. We show that for a certain conjunctive query language for complex objects, query containment and weak query equivalence are decidable. Our results have two consequences. First, when the answers of the two queries are guaranteed not to contain empty sets, then weak equivalence coincides with equivalence, and o...
متن کاملOn the Containment Problem for Queries with Safe Negation
We consider the problem of query containment for conjunctive queries with safe negation property. A special class of queries is specified. For this class an algorithm to test the containment problem is given. The time complexity of this algorithm is presented.
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2007